﻿@using System.Web.Optimization
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
        <title>Nhập liệu @RenderSection("TitleContent", required: false)</title>
         @System.Web.Optimization.Styles.Render("~/Content/StyleSheet1.css")
        @* @Scripts.Render("~/bundles/jquery")*@
        @RenderSection("HeaderContent", required: false)

@*    <link href="@Url.Content("~/Content/SecurityGuard/securityguard.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/SecurityGuard/pagination.css")" rel="stylesheet" type="text/css" />*@
    <script src="@Url.Content("~/Content/scripts/jquery-1.6.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/scripts/modernizr-1.7.min.js")" type="text/javascript"></script>

    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    <script src="@Url.Content("~/Scripts/jquery.ui.core.js")" 
        type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.ui.datepicker.js")" 
        type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/DatePickerReady.js")" 
        type="text/javascript"></script>
    </head>
    <body>
        <!-- Header -->
        <div id="header">
            <div class="shell">
                <!-- Logo + Top Nav -->
                <div id="top">
                    <h1><a href="#">Nhập liệu</a></h1>
                    <div id="top-navigation">
                   @* <section id="login">
                       Xin chào, @Html.ActionLink(User.Identity.Name, "", "")!
                    </section>
                      @Html.ActionLink("Đăng xuất","Logout", "Account")*@


                        @{
                    string loginInfor = "";
                    if (Request.IsAuthenticated)
                    {
                        try
                        {
                             
                            FormsAuthenticationTicket ticket = FormsAuthentication.Decrypt(Request.Cookies[".ASPXAUTH"].Value);

                            loginInfor = "<span class=\"header_social\"><span class=\"badge\">Xin chào, <a href=\"#\" title=\"Edit your profile\"></a>" + @Html.ActionLink(User.Identity.Name, "", "") + " !</span>&nbsp&nbsp";
                            loginInfor += "<span class=\"badge\">" + Html.ActionLink("Đăng xuất", "Logout", "Home");
                        }
                        catch (Exception ex) { }

                    }
                    //else
                    //{
                    //    loginInfor = "<span class=\"header_social\"><span class=\"badge\">" + @Html.ActionLink("Đăng nhập", "Login", "Account") + " </span>&nbsp&nbsp";
                    //    loginInfor += "<span class=\"badge\">" + @Html.ActionLink("Đăng Ký", "RegisterView", "Home");
                    //}
       
                }
                @Html.Raw(@loginInfor)
                    </div>
                </div>
                <!-- End Logo + Top Nav -->
		
                <!-- Main Nav -->
                <div id="navigation">
                    <ul>  @{
                            string departmentInfor1 = "";
                            int roleID1 = ManageReportVer1.Utils.GetRoleOFUser(User.Identity.Name);
                            if(roleID1==1)
                            {
                                try{
                                    departmentInfor1 = "<li>" + Html.ActionLink("Nhập liệu", "ViewData", "Data") + "</li>";
                      
                        }
                        catch(Exception ex){}
                            }
                        }
                        @Html.Raw(@departmentInfor1)
                       
                        <li>@Html.ActionLink("Biểu mẫu", "ViewItem","Item")</li>                       
                        @{
                            string departmentInfor = "";
                            int roleID = ManageReportVer1.Utils.GetRoleOFUser(User.Identity.Name);
                            if(roleID==2)
                            {
                                try{
                                    departmentInfor = "<li>" + Html.ActionLink("Quản lý phòng ban", "ViewDepartment", "Department")+"</li>";
                      
                        }
                        catch(Exception ex){}
                            }
                        }
                        @Html.Raw(@departmentInfor)
                        <li>@Html.ActionLink("Quản lý người dùng", "Index","Account")</li> 
                    </ul>
                </div>
                <!-- End Main Nav -->
            </div>
        </div>
        <!-- End Header -->

        <!-- Container -->
        <div id="container">
            <div class="shell">
		
                <!-- Small Nav -->
               @* <div class="small-nav">
                    <a href="#">Dashboard</a>
                    <span>&gt;</span>
                    Current Articles
                </div>*@
                <!-- End Small Nav -->
                <!-- Message OK -->
           @*     @Html.Partial("_SucceedMessage")
                <!-- End Message OK -->		
		
                <!-- Message Error -->
                @Html.Partial("_ErrorMessage")*@
                <!-- End Message Error -->
                <!-- Main -->
                <div id="main">
                    <div class="cl">&nbsp;</div>
			
                    @RenderBody()
			
                    <div class="cl">&nbsp;</div>			
                </div>
                <!-- Main -->
            </div>
        </div>
        <!-- End Container -->

        <!-- Footer -->
        <div id="footer">
            <div class="shell">
                <span class="left">&copy; @DateTime.Now.Year - National Institute Of Hematology And Blood Transfustion</span>
                <span class="right">
                    Design by <a href="#" target="_blank" title="The Sweetest CSS Templates WorldWide">Quần bục đít</a>
                </span>
            </div>
        </div>
        <!-- End Footer -->
	@System.Web.Optimization.Scripts.Render("~/bundles/jquery")

    </body>
</html>